<template>
  <van-notice-bar left-icon="volume-o" :text="notice" />
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item>1</van-swipe-item>
    <van-swipe-item>2</van-swipe-item>
    <van-swipe-item>3</van-swipe-item>
    <van-swipe-item>4</van-swipe-item>
  </van-swipe>
  <van-grid>
    <van-grid-item icon="guide-o" text="位置" />
    <van-grid-item icon="link-o" text="链接" />
    <van-grid-item icon="guide-o" text="地图" />
    <van-grid-item icon="link-o" text="更多" />
  </van-grid>
</template>

<script setup>
import { showSuccessToast } from 'vant'

let notice = '欢迎来到XXX:'

const onSubmit = () => {
  showSuccessToast('购买成功')
}
</script>

<style scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
}
</style>
